package com.game.battleship.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQLiteOpenHelper;

public class DbHelper extends SQLiteOpenHelper {

	private static final String DATABASE_NAME = "BK_BATTLESHIP";
	private static final int DATABASE_VERSION = 1;

	public DbHelper(Context context) throws SQLiteException {
		super(context, DATABASE_NAME, null, DATABASE_VERSION);
		// TODO Auto-generated constructor stub
	}

	@Override
	public void onCreate(SQLiteDatabase db) throws SQLiteException {
		// TODO Auto-generated method stub
		StagesTable.onCreate(db);
		UsersTable.onCreate(db);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int old_version, int new_version) {
		// TODO Auto-generated method stub
		
	}
}
